package List.LinkedList;

import java.util.Collections;
import java.util.LinkedList;

public class collections {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();
        list.add(12);
        list.add(34);
        list.add(56);
        list.add(78);
        list.add(90);
        for (Integer integer:list){
            System.out.print(integer+"\t");
        }
        System.out.println();
        Collections.shuffle(list);
        System.out.println("==========打乱顺序后的结果============");
        for (Integer integer:list){
            System.out.print(integer+"\t");
        }
    }
}
